from dingtalkchatbot.chatbot import DingtalkChatbot

bot = DingtalkChatbot(
    "https://oapi.dingtalk.com/robot/send?access_token=cb03d197d87a55df3a0d4952870c59011b05290e2477da27a93c97bd6239cb80",
    secret="SECc2f110e72304b4552540f844ce62fe1949fbda81ae65e3414d7d5509d8ff8b88"
)

# 发送文本
# bot.send_text("哈哈哈", is_at_all=True)

# 发送地址
bot.send_link("自定义机器人接入", "如果你需要在普通群（即外部群）发送消息时，你可以参考本文档操作步骤创建自定义机器人。", "https://open.dingtalk.com/document/robots/custom-robot-access")
